/*
 * @Description: 列表查询Dto
 * @Author: Haor
 * @Date: 2022-04-07 14:01:00
 * @LastEditTime: 2022-04-07 14:06:53
 * @LastEditors: Haor
 */
import { IsNotEmpty, IsArray, MaxLength } from 'class-validator'

export class ListQueryDto {
	@IsNotEmpty()
	@IsArray({ message: '请传入一个list数组' })
	@MaxLength(20)
	readonly list: Array<string>
}
